package com.xinyi.share.weixin.entity;


/**
 * 按钮
 * @author Administrator
 *
 */
public class MenuButton{
	protected final static String view="view";
	protected final static String click="click";
	private String type;
	private String name;
	
	public MenuButton(String type,String name){
		this.type = type;
		this.name = name;
	}
	/**
	 * 获取点击按钮
	 * @param name
	 * @param key
	 * @return
	 */
	public static ClickMenuButton getClickMenu(String name,String key){
		return new ClickMenuButton(name, key);
	}
	/**
	 * 得到有子菜单的点击菜单
	 * @param name
	 * @param key
	 * @return
	 */
	public static ClickSubMenuButton getClickSubMenuButton(String name,String key){
		return new ClickSubMenuButton(name, key);
	}
	/**
	 * 获取查看菜单
	 * @param name
	 * @param url
	 * @return
	 */
	public static ViewMenuButton getViewMenu(String name,String url){
		return new ViewMenuButton(name, url);
	}
	/**
	 * 得到有子菜单的查看菜单
	 * @param name
	 * @param url
	 * @return
	 */
	public static ViewSubMenuButton getViewSubMenuButton(String name,String url){
		return new ViewSubMenuButton(name, url);
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	
	
	
}
